package views

import (
	"go_web/common"
	"go_web/service"
	"log"
	"net/http"
)

func (h *HTMLApi) Pigeonhole(w http.ResponseWriter, r *http.Request) {

	Pigeonhole := common.Template.Pigeonhole

	pigeonholeRes, err := service.FindPostPigeonhole()
	if err != nil {

		log.Println(err)

	}

	Pigeonhole.WriteData(w, pigeonholeRes)
}
